import request from "/@/utils/request";
// 获取各个类型数量
export const getStatsCountApi = (params: any) => {
  return request({
    url: "/admin/device/alarm/queryDeviceOffsetCoverAlarmCheckCount",
    method: "get",
    params,
  });
};

// 列表显示
export const getDeviceList = (params: any) => {
  return request({
    url: "/admin/device/alarm/queryDeviceOffsetCoverAlarmPage",
    method: "get",
    params,
  });
};
// 获取设备列表统计
export const getDeviceListCount = (params: any) => {
  return request({
    url: "/admin/device/alarm/queryDeviceOffsetCoverCount",
    method: "get",
    params,
  });
};
// 获取详情
export const getDeviceDetails = (id: string) => {
  return request({
    url: "/admin/device/alarm/queryDeviceOffsetCoverDetailDtoById",
    method: "get",
    params: { id },
  });
};
// 审核设备偏移/遮挡
export const reviewDeviceApi = (data: any) => {
  return request({
    url: "/admin/device/alarm/deviceOffsetCoverAlarmCheck",
    method: "post",
    data,
  });
};

// ----------------------ICC通用告警------------------------------
// 获取告警类型列表
export const getIccGeneralAlarmList = () => {
  return request({
    url: "/admin/device/alarm/generalAlarmTypeNameStatistics",
    method: "get",
  });
};
// 获取Icc告警审核统计
export const getIccAlarmStats = (params: any) => {
  return request({
    url: "/admin/device/alarm/generalAlarmCheckTypeStatistics",
    method: "get",
    params,
  });
};
// 获取ICC告警列表
export const getIccAlarmList = (params: any) => {
  return request({
    url: "/admin/device/alarm/queryGeneralAlarmPage",
    method: "get",
    params,
  });
};
// 获取ICC告警详情
export const getIccAlarmDetail = (id: string) => {
  return request({
    url: "/admin/device/alarm/queryGeneralAlarmById/" + id,
    method: "get",
  });
};
// 审核Icc告警
export const reviewIccAlarm = (params: any) => {
  return request({
    url: "/admin/device/alarm/generalAlarmCheck",
    method: "get",
    params,
  });
};

// 获取设备离线告警
export const getDeviceOfflineAlarm = (params: any) => {
  return request({
    url: "/admin/device/alarm/queryDeviceOnlineAlarmPage",
    method: "get",
    params,
  });
};

// 获取设备离线统计
export const getDeviceOfflineStats = (params: any) => {
  return request({
    url: "/admin/device/alarm/deviceOnlineAlarmCenterStatistics",
    method: "get",
    params,
  });
};
